package com.example.day2.busi.message;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.example.day2.R;
import com.example.day2.databinding.FragmentMessageBinding;
import com.example.day2.mvvm.base.BaseViewFragment;
import com.hyphenate.easeui.modules.conversation.EaseConversationListFragment;
import com.hyphenate.easeui.modules.conversation.model.EaseConversationInfo;

import java.util.ArrayList;
import java.util.List;

public class MessageFragment extends EaseConversationListFragment {
    private List<EaseConversationInfo> list = new ArrayList<>();
    @Override
    public void onItemClick(View view, int position) {
        super.onItemClick(view, position);
        //获取会话列表
        Intent intent = new Intent(getContext(), ChatActivity.class);
        Bundle bundle = new Bundle();
        bundle.putString("conversationId","admin");
        bundle.putInt("chatType",1);
        intent.putExtras(bundle);
        startActivity(intent);
    }
}
